<!DOCTYPE html>
<html>
<head>
  <title>插槽</title>
    <script type="text/javascript" src="../js/vue.js"></script>
    <link rel="stylesheet" type="text/css" href="../font/iconfont.css">
    <link href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1" rel="stylesheet" type="text/css">
</head>
<body>
   <div id="demo">
       <div v-ch="color">
           {{color}}
       </div>
   </div>
   <script type="text/javascript">
        Vue.directive("ch",function(el,binding,vnode){
            console.log(binding)
        });
        new Vue({
            el:"#demo",
            data:{
                color:"red"
            }
        })
   </script>
</body>
</html>